<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script src="util.js"></script>
<script>

    function insertion_sort(arr) {
      for (let i = 1; i < arr.length; i ++) {
        for (let j = i; j >= 0 && arr[j] > arr[j - 1]; j --) {
            exec(arr, j ,j - 1);
        }
      }
    }

    let test_arr = gen_rand(20);
    insertion_sort(test_arr);
    console.log(test_arr);
</script>
</html>